/*
 * The MIT License
 *
 * Copyright 2015 chronosinfo.com.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 * Autor John Vanderson M Lima
 */

package com.chronos.pafecf.entidades;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author usuario
 */
@Entity
@Table(name = "R01", catalog = "", schema = "")
@NamedQueries({
    @NamedQuery(name = "R01.findAll", query = "SELECT r FROM R01 r")})
public class R01 implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "ID", nullable = false)
    private Integer id;
    @Column(name = "SERIE_ECF", length = 20)
    private String serieEcf;
    @Column(name = "CNPJ_EMPRESA", length = 14)
    private String cnpjEmpresa;
    @Column(name = "CNPJ_SH", length = 14)
    private String cnpjSh;
    @Column(name = "INSCRICAO_ESTADUAL_SH", length = 14)
    private String inscricaoEstadualSh;
    @Column(name = "INSCRICAO_MUNICIPAL_SH", length = 14)
    private String inscricaoMunicipalSh;
    @Column(name = "DENOMINACAO_SH", length = 40)
    private String denominacaoSh;
    @Column(name = "NOME_PAF_ECF", length = 40)
    private String nomePafEcf;
    @Column(name = "VERSAO_PAF_ECF", length = 10)
    private String versaoPafEcf;
    @Column(name = "MD5_PAF_ECF", length = 32)
    private String md5PafEcf;
    @Column(name = "DATA_INICIAL")
    @Temporal(TemporalType.DATE)
    private Date dataInicial;
    @Column(name = "DATA_FINAL")
    @Temporal(TemporalType.DATE)
    private Date dataFinal;
    @Column(name = "VERSAO_ER", length = 4)
    private String versaoEr;
    @Column(name = "NUMERO_LAUDO_PAF", length = 40)
    private String numeroLaudoPaf;
    @Column(name = "RAZAO_SOCIAL_SH", length = 40)
    private String razaoSocialSh;
    @Column(name = "ENDERECO_SH", length = 40)
    private String enderecoSh;
    @Column(name = "NUMERO_SH", length = 10)
    private String numeroSh;
    @Column(name = "COMPLEMENTO_SH", length = 40)
    private String complementoSh;
    @Column(name = "BAIRRO_SH", length = 40)
    private String bairroSh;
    @Column(name = "CIDADE_SH", length = 40)
    private String cidadeSh;
    @Column(name = "CEP_SH", length = 8)
    private String cepSh;
    @Column(name = "UF_SH", length = 2)
    private String ufSh;
    @Column(name = "TELEFONE_SH", length = 10)
    private String telefoneSh;
    @Column(name = "CONTATO_SH", length = 20)
    private String contatoSh;
    @Column(name = "PRINCIPAL_EXECUTAVEL", length = 40)
    private String principalExecutavel;
    @Column(name = "HASH_TRIPA", length = 32)
    private String hashTripa;
    @Column(name = "HASH_INCREMENTO")
    private Integer hashIncremento;

    public R01() {
    }

    public R01(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSerieEcf() {
        return serieEcf;
    }

    public void setSerieEcf(String serieEcf) {
        this.serieEcf = serieEcf;
    }

    public String getCnpjEmpresa() {
        return cnpjEmpresa;
    }

    public void setCnpjEmpresa(String cnpjEmpresa) {
        this.cnpjEmpresa = cnpjEmpresa;
    }

    public String getCnpjSh() {
        return cnpjSh;
    }

    public void setCnpjSh(String cnpjSh) {
        this.cnpjSh = cnpjSh;
    }

    public String getInscricaoEstadualSh() {
        return inscricaoEstadualSh;
    }

    public void setInscricaoEstadualSh(String inscricaoEstadualSh) {
        this.inscricaoEstadualSh = inscricaoEstadualSh;
    }

    public String getInscricaoMunicipalSh() {
        return inscricaoMunicipalSh;
    }

    public void setInscricaoMunicipalSh(String inscricaoMunicipalSh) {
        this.inscricaoMunicipalSh = inscricaoMunicipalSh;
    }

    public String getDenominacaoSh() {
        return denominacaoSh;
    }

    public void setDenominacaoSh(String denominacaoSh) {
        this.denominacaoSh = denominacaoSh;
    }

    public String getNomePafEcf() {
        return nomePafEcf;
    }

    public void setNomePafEcf(String nomePafEcf) {
        this.nomePafEcf = nomePafEcf;
    }

    public String getVersaoPafEcf() {
        return versaoPafEcf;
    }

    public void setVersaoPafEcf(String versaoPafEcf) {
        this.versaoPafEcf = versaoPafEcf;
    }

    public String getMd5PafEcf() {
        return md5PafEcf;
    }

    public void setMd5PafEcf(String md5PafEcf) {
        this.md5PafEcf = md5PafEcf;
    }

    public Date getDataInicial() {
        return dataInicial;
    }

    public void setDataInicial(Date dataInicial) {
        this.dataInicial = dataInicial;
    }

    public Date getDataFinal() {
        return dataFinal;
    }

    public void setDataFinal(Date dataFinal) {
        this.dataFinal = dataFinal;
    }

    public String getVersaoEr() {
        return versaoEr;
    }

    public void setVersaoEr(String versaoEr) {
        this.versaoEr = versaoEr;
    }

    public String getNumeroLaudoPaf() {
        return numeroLaudoPaf;
    }

    public void setNumeroLaudoPaf(String numeroLaudoPaf) {
        this.numeroLaudoPaf = numeroLaudoPaf;
    }

    public String getRazaoSocialSh() {
        return razaoSocialSh;
    }

    public void setRazaoSocialSh(String razaoSocialSh) {
        this.razaoSocialSh = razaoSocialSh;
    }

    public String getEnderecoSh() {
        return enderecoSh;
    }

    public void setEnderecoSh(String enderecoSh) {
        this.enderecoSh = enderecoSh;
    }

    public String getNumeroSh() {
        return numeroSh;
    }

    public void setNumeroSh(String numeroSh) {
        this.numeroSh = numeroSh;
    }

    public String getComplementoSh() {
        return complementoSh;
    }

    public void setComplementoSh(String complementoSh) {
        this.complementoSh = complementoSh;
    }

    public String getBairroSh() {
        return bairroSh;
    }

    public void setBairroSh(String bairroSh) {
        this.bairroSh = bairroSh;
    }

    public String getCidadeSh() {
        return cidadeSh;
    }

    public void setCidadeSh(String cidadeSh) {
        this.cidadeSh = cidadeSh;
    }

    public String getCepSh() {
        return cepSh;
    }

    public void setCepSh(String cepSh) {
        this.cepSh = cepSh;
    }

    public String getUfSh() {
        return ufSh;
    }

    public void setUfSh(String ufSh) {
        this.ufSh = ufSh;
    }

    public String getTelefoneSh() {
        return telefoneSh;
    }

    public void setTelefoneSh(String telefoneSh) {
        this.telefoneSh = telefoneSh;
    }

    public String getContatoSh() {
        return contatoSh;
    }

    public void setContatoSh(String contatoSh) {
        this.contatoSh = contatoSh;
    }

    public String getPrincipalExecutavel() {
        return principalExecutavel;
    }

    public void setPrincipalExecutavel(String principalExecutavel) {
        this.principalExecutavel = principalExecutavel;
    }

    public String getHashTripa() {
        return hashTripa;
    }

    public void setHashTripa(String hashTripa) {
        this.hashTripa = hashTripa;
    }

    public Integer getHashIncremento() {
        return hashIncremento;
    }

    public void setHashIncremento(Integer hashIncremento) {
        this.hashIncremento = hashIncremento;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof R01)) {
            return false;
        }
        R01 other = (R01) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.chronos.pafecf.entidades.R01[ id=" + id + " ]";
    }
    
}
